DIR, short for directory, is a shell command for listing file system contents: computer file and file directory. Arguably, the command provides the same essential functionality as the dir command, but typically the two commands are described as notably separate concepts, possibly since is implemented from a codebase that shares more history than many implementations.
The command is often implemented as internal in the operating system shell instead of as a separate application as many other commands are.
Some applications also provide a command with similar functionality. The typical File Transfer Protocol (FTP) command-line client provides a ls command for listing a remote directory. The numerical computing environments MATLAB and GNU Octave include a dir command.
Generally, Unix-like systems use the command for the needs that dir satisfies in other types of systems. Notably, the Unix-like GNU operating system, provides a dir command that is equivalent to dir; that is, by default files are listed in columns, sorted vertically, and special characters are represented by backslash escape sequences.//www.gnu.org/software/coreutils/manual/html_node/dir-invocation.html (GNU coreutils) at www.gnu.org
List text file and batch file files of the working directory by specifying filename extensions ".txt" or ".bat" with the "*" wildcard character that matches any base file name.
List files and directories in the specified directory and any subdirectories, recursively, in wide format, pausing after each screen of output. The directory name is enclosed in Quotation mark, to prevent it from being interpreted is as two separate command-line options because it contains a space.
List any NTFS junction points:
|
|